###
# Build test applications 
###

# Smooth Filter

ADD_EXECUTABLE(test_smooth smooth.cpp)
TARGET_LINK_LIBRARIES(test_smooth
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)

# Canny Filter

ADD_EXECUTABLE(test_canny canny.cpp)
TARGET_LINK_LIBRARIES(test_canny
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)

# Erode Filter

ADD_EXECUTABLE(test_erode erode.cpp)
TARGET_LINK_LIBRARIES(test_erode
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)

# Dilate Filter

ADD_EXECUTABLE(test_dilate dilate.cpp)
TARGET_LINK_LIBRARIES(test_dilate
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)

# Sobel Filter

ADD_EXECUTABLE(test_sobel sobel.cpp)
TARGET_LINK_LIBRARIES(test_sobel
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)


# Laplace Filter

ADD_EXECUTABLE(test_laplace laplace.cpp)
TARGET_LINK_LIBRARIES(test_laplace
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)


# Threshold Filter

ADD_EXECUTABLE(test_threshold threshold.cpp)
TARGET_LINK_LIBRARIES(test_threshold
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)

#Pyramid Segmentation

ADD_EXECUTABLE(test_pyrsegmentation pyrsegmentation.cpp)
TARGET_LINK_LIBRARIES(test_pyrsegmentation
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)


# Feature Detection
ADD_EXECUTABLE(test_corners corners.cpp)
TARGET_LINK_LIBRARIES(test_corners
            ossimopencv
            ${HIGHGUI_LIB}
            ${CV_LIB}
            ${CXCORE_LIB}
            ${CVAUX_LIB}
            ${OSSIM_LIB}
)
